if not SYSPATH then return end
    -----------------------------------------
    --IP提示界面
    -----------------------------------------
    local M  	        = class("waringGps",PanelInner)
    local model         = app.gamesUse("model")
    local model_hall    = app.model("hall")
    
    function M:ctor(param)
        self.class.super.ctor(self)
        self:init()
    end
    
    function M:onEnter()
        self.class.super.onEnter(self)
    end
    
    function M:onExit()
    end
    
    function M:init()
        local main = cc.CSLoader:createNode("zjh/res/waringGps.csb")
        self:addChild(main,999)
        Adaptive(main).h()
        local uid = model_hall.Uid.get()
        local arr = table.deepCopy(model.roomData._list)
        for k,v in pairs(arr) do
            if v.Uid == uid then
                table.remove(arr,k)
                break
            end
        end
        
        cc.uiloader:seekNodeByName(main,"btn_yes"):addTouchEventListener(function (obj,e)
            if e == ccui.TouchEventType.ended then
                game.view.back("common.waringGps","zjh")
            end
        end)
        
        local gpsData = {}
        local totle = #arr
        for i = 1 , totle do 
            for j = i + 1 , totle do 
                if arr[j].Uid ~= arr[i].Uid then
                    local gps = arr[j].GPS .. ";" .. arr[i].GPS
                    table.insert( gpsData,{ beg = i,ends = j,endsGps = arr[j].GPS,begGps = arr[i].GPS})
                end 
            end
        end
        local arrNum = #arr
        if arrNum >= 2 then
            local pan = cc.uiloader:seekNodeByName(main,"Panel_" .. arrNum - 1)
            pan:setVisible(false)
            local idx = 1
            for k,v in pairs(arr) do
                local cell = cc.uiloader:seekNodeByName(pan,"cell_" .. idx)
                idx = idx + 1
                cell:setTag(k)
                local sp = cc.Sprite:create()
                sp:setPosition(cc.p(46,46))
                cell:addChild(sp)
                HttpRequest.image(v.FaceUrl,sp,94,function(code)  end)
                cc.uiloader:seekNodeByName(cell,"txt_name"):setString(v.name)
            end
            for k,v in pairs(gpsData) do
                local str = "meter_" .. v.beg .. "_" .. v.ends
                if v.endsGps == "gps" or v.begGps == "gps" then
                    cc.uiloader:seekNodeByName(pan,str):setString("未知")
                else
                    local leng = PlatForm.PlatformTool:getCalcDistance(v.endsGps .. ";" .. v.begGps)
                    if leng == "" then
                        cc.uiloader:seekNodeByName(pan,str):setString("未知")
                    else
                        cc.uiloader:seekNodeByName(pan,str):setString(leng .. "米")
                    end
                end
            end
        end
    end
    
    return M